home *** CD-ROM | disk | FTP | other *** search
-
-
-
- Pumask(2) Oct. 1, 1991 Pumask(2)
-
-
- N✓NA✓AM✓ME✓E
- Pumask - set file and directory creation mask
-
- S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
- WORD Pumask( WORD mode );
-
- D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
- _✓P_✓u_✓m_✓a_✓s_✓k changes the file and directory creation mask of the
- current process to the unsigned 16 bit quantity specified
- in _✓m_✓o_✓d_✓e. The old value of the creation mask is returned.
- Child processes inherit the new value for the mask.
-
- When a new file is created with _✓F_✓c_✓r_✓e_✓a_✓t_✓e or a new directory
- created with _✓D_✓c_✓r_✓e_✓a_✓t_✓e the initial access permissions (see
- _✓F_✓c_✓h_✓m_✓o_✓d for a description of these) for the newly created
- file or directory are normally set so that all permissions
- are granted (except that execute permission is not nor-
- mally granted for files). The creation mask set by _✓P_✓u_✓m_✓a_✓s_✓k
- determines which permissions are _✓n_✓o_✓t to be granted by
- default. Thus, files created after a
- Pumask(S_IWOTH|S_IWGRP|S_IXOTH) call will be readable by
- anyone, but writable only by the owner; moreover, directo-
- ries created after this call would be searchable by the
- owner and members of the same group, but not by anyone
- else.
-
- S✓SE✓EE✓E A✓AL✓LS✓SO✓O
- _✓D_✓c_✓r_✓e_✓a_✓t_✓e(2), _✓F_✓c_✓h_✓m_✓o_✓d(2), _✓F_✓c_✓r_✓e_✓a_✓t_✓e(2)
-
- B✓BU✓UG✓GS✓S
- _✓P_✓u_✓m_✓a_✓s_✓k doesn't affect explicit _✓F_✓c_✓h_✓m_✓o_✓d calls, as some might
- expect.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Version 0.9 MiNT Programmer's Manual 1
-
-
-